package com.ruoyi.hospital.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 处方明细对象 prescription_detail
 *
 * @author qichi
 * @date 2023-07-25
 */
public class PrescriptionDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 处方明细 */
    private Long id;

    /** 租户id */
    @Excel(name = "租户id")
    private Long tenantId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 处方编号 */
    @Excel(name = "处方编号")
    private String prescriptionCode;

    /** 处方id */
    @Excel(name = "处方id")
    private Long prescriptionId;


    /** 物资id */
    @Excel(name = "物资id")
    private Long materielId;

    /** 物质编码 */
    @Excel(name = "物质编码")
    private String materielCode;

    /** 计划数量 */
    @Excel(name = "计划数量")
    private BigDecimal planNum;

    /** 用药指导/用法 */
    @Excel(name = "用药指导/用法")
    private String medicationInstruction;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 用量 */
    @Excel(name = "用量")
    private String dosage;

    /** 实际数量(空-计划数量) */
    @Excel(name = "实际数量(空-计划数量)")
    private BigDecimal realityNum;

    /** 物资金额/单 */
    @Excel(name = "物资金额/单")
    private BigDecimal materielAmount;

    /** 实际金额(空-物资金额) */
    @Excel(name = "实际金额(空-物资金额)")
    private BigDecimal materielRealityAmount;

    /** 物资折扣 */
    @Excel(name = "物资折扣")
    private BigDecimal materielDiscount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTenantId(Long tenantId)
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId()
    {
        return tenantId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setPrescriptionCode(String prescriptionCode)
    {
        this.prescriptionCode = prescriptionCode;
    }

    public String getPrescriptionCode()
    {
        return prescriptionCode;
    }
    public void setPrescriptionId(Long prescriptionId)
    {
        this.prescriptionId = prescriptionId;
    }

    public Long getPrescriptionId()
    {
        return prescriptionId;
    }
    public void setMaterielId(Long materielId)
    {
        this.materielId = materielId;
    }

    public Long getMaterielId()
    {
        return materielId;
    }
    public void setMaterielCode(String materielCode)
    {
        this.materielCode = materielCode;
    }

    public String getMaterielCode()
    {
        return materielCode;
    }
    public void setPlanNum(BigDecimal planNum)
    {
        this.planNum = planNum;
    }

    public BigDecimal getPlanNum()
    {
        return planNum;
    }
    public void setMedicationInstruction(String medicationInstruction)
    {
        this.medicationInstruction = medicationInstruction;
    }

    public String getMedicationInstruction()
    {
        return medicationInstruction;
    }
    public void setSpecification(String specification)
    {
        this.specification = specification;
    }

    public String getSpecification()
    {
        return specification;
    }
    public void setDosage(String dosage)
    {
        this.dosage = dosage;
    }

    public String getDosage()
    {
        return dosage;
    }
    public void setRealityNum(BigDecimal realityNum)
    {
        this.realityNum = realityNum;
    }

    public BigDecimal getRealityNum()
    {
        return realityNum;
    }
    public void setMaterielAmount(BigDecimal materielAmount)
    {
        this.materielAmount = materielAmount;
    }

    public BigDecimal getMaterielAmount()
    {
        return materielAmount;
    }
    public void setMaterielRealityAmount(BigDecimal materielRealityAmount)
    {
        this.materielRealityAmount = materielRealityAmount;
    }

    public BigDecimal getMaterielRealityAmount()
    {
        return materielRealityAmount;
    }
    public void setMaterielDiscount(BigDecimal materielDiscount)
    {
        this.materielDiscount = materielDiscount;
    }

    public BigDecimal getMaterielDiscount()
    {
        return materielDiscount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("deptId", getDeptId())
            .append("prescriptionCode", getPrescriptionCode())
            .append("prescriptionId", getPrescriptionId())
            .append("materielId", getMaterielId())
            .append("materielCode", getMaterielCode())
            .append("planNum", getPlanNum())
            .append("medicationInstruction", getMedicationInstruction())
            .append("specification", getSpecification())
            .append("dosage", getDosage())
            .append("realityNum", getRealityNum())
            .append("materielAmount", getMaterielAmount())
            .append("materielRealityAmount", getMaterielRealityAmount())
            .append("materielDiscount", getMaterielDiscount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
